﻿using System;
using Pay.TO;

namespace Pay.DTO {
	/// <summary>
	/// 支付退款请求
	/// </summary>
	public class refund_model : head_req {
		/// <summary>
		/// 交易金额:单位：分
		/// </summary>
		public string tran_amount { get; set; }
		/// <summary>
		/// 退款单号
		/// </summary>
		public string order_no { get; set; }
		/// <summary>
		/// 原订单号,与原交易流水号二选一
		/// </summary>
		public string orig_order_no { get; set; }
		/// <summary>
		/// 原交易流水号，与原订单号二选一
		/// </summary>
		public string transaction_no { get; set; }
		/// <summary>
		/// 通道
		/// </summary>
		public PayChannel pay_channel { get; set; }
	}

	/// <summary>
	/// 支付退款响应
	/// </summary>
	public class refund_result : ApiResultMessage {
		/// <summary>
		/// 退款金额:单位：分
		/// </summary>
		public string tran_amount { get; set; }
		/// <summary>
		/// 退款单号
		/// </summary>
		public string order_no { get; set; }
		/// <summary>
		/// 退款交易流水号
		/// </summary>
		public string transaction_no { get; set; }
		/// <summary>
		/// 支付时间：yyyy-mm-dd hh:mm:ss
		/// </summary>
		public DateTime pay_time { get; set; }
		/// <summary>
		/// 1退款中,2退款成功,4失败
		/// </summary>
		public RefundStatus status { get; set; }
	}

	/// <summary>
	/// 支付、退款查询请求
	/// </summary>
	public class refund_model_query : head_req {
		public refund_model_query() {
			ordtype = "P";
		}
		/// <summary>
		/// 通道
		/// </summary>
		public PayChannel pay_channel { get; set; }
		/// <summary>
		/// 退款单号，与退款交易流水号二选一
		/// </summary>
		public string order_no { get; set; }
		/// <summary>
		/// 订单类型 P 支付订单 D 提现订单
		/// </summary>
		public string ordtype { get; set; }
		/// <summary>
		/// 退款交易流水号，与退款单号二选一
		/// </summary>
		public string transaction_no { get; set; }
	}
}
